package com.ketangpai.admin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ketangpai.admin.entity.UserCourse;
import com.ketangpai.admin.entity.Work;
import com.ketangpai.admin.entity.dto.TeacherDTO;
import com.ketangpai.admin.entity.dto.UserDTO;
import com.ketangpai.admin.entity.param.UserCourseParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户与课程(UserCourse)表数据库访问层
 *
 * @author makejava
 * @since 2023-06-14 01:14:49
 */
@Mapper
public interface UserCourseDao extends BaseMapper<UserCourse> {

    List<UserDTO> getUser(@Param("param") UserCourseParam param);


    List<TeacherDTO> getTeacher(@Param("param") UserCourseParam param);

    Integer countTeacher(@Param("param") UserCourseParam param);

    Integer countUser(@Param("param") UserCourseParam param);

    List<UserCourse> getByCid(Integer courseId);
    List<Work> getWork(Integer courseId);
}

